-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impl: add a retry with result function #2837
impl: add a retry with result function #2837
Conversation
Thanks for the PR @alevenberg! From the CI tests it looks like there are two linter errors to resolve:
update this line in
Once these are resolved, the PR itself looks good and we should be able to merge |
Made the changes. Ran the following to format the files.
|
Thanks for taking a look @aaron-prindle |
* impl: add a retry with result function * fix ci errs
* impl: add a retry with result function * fix ci errs
* impl: add a retry with result function * fix ci errs
* impl: add a retry with result function * fix ci errs
* impl: add a retry with result function * fix ci errs
First part of the attempt to fix #1717
Description
This is 1/2 PRs. In the 2nd PR, I want to add a retry loop to
remoteImageFunc
. This PR adds a function to retry when there is a return value.Submitter Checklist
- [ ] Adds integration tests if needed.Tested using
go test pkg/util/util_test.go pkg/util/util.go
I tried
make test
but was getting failures on the main branch in unrelated tests, e.g.Reviewer Notes
Note: this is my first time using go in a while, if there are any readability changes I could make, please let me know!